/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package scapi.gui;

import java.awt.Frame;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;

/**
 *
 * @author emmanuel
 */
public class DialogoGenerico extends JDialog{

    JPanel panel;

    public DialogoGenerico(Frame arg0, String arg1, boolean arg2, JPanel panel) {
        super(arg0, arg1, arg2);
        this.panel = panel;
        setContentPane(panel);
        setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        pack();

        
    }
    
    public void cerrar(){
        this.dispose();
    }


    


}
